export default [
  {
    name: '登陆',
    path: '/user',
    layout: false,
    routes: [{ path: '/user/login', component: './User/Login' }],
  },
  {
    name: '注册',
    path: '/user',
    layout: false,
    routes: [{ path: '/user/register', component: './User/Register' }],
  },
  // {
  //   name: '忘记密码',
  //   path: '/user',
  //   layout: false,
  //   routes: [{ path: '/user/updatePWD', component: './User/UpdatePWD' }],
  // },
  { name: '欢迎', path: '/welcome', icon: 'smile', component: './Welcome' },
  {
    name: '智能分析',
    icon: 'barChart',
    path: '/chart/gen',
    routes: [{ path: '/chart/gen', component: './Chart/Gen' }],
  },
  {
    name: '智能分析(后台生成)',
    icon: 'barChart',
    path: '/chart/genAsync',
    routes: [{ path: '/chart/genAsync', component: './Chart/GenAsync' }],
  },
  {
    path: '/chart/myChart',
    icon: 'pieChart',
    name: '我的图表',
    routes: [{ path: '/chart/myChart', component: './Chart/MyChart' }],
  },
  { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
];
